.markdown {
  // {{< expand "Label" "icon" >}}
  .book-expand {
    margin-top: $padding-16;
    margin-bottom: $padding-16;

    border: $padding-1 solid $gray;
    border-radius: $border-radius;

    overflow: hidden;

    .book-expand-head {
      background: $gray-100;
      padding: $padding-8 $padding-16;
      cursor: pointer;
    }

    .book-expand-content {
      display: none;
      padding: $padding-16;
    }

    input[type="checkbox"]:checked + .book-expand-content {
      display: block;
    }
  }

  // {{< tabs >}}
  .book-tabs {
    margin-top: $padding-16;
    margin-bottom: $padding-16;

    border: $padding-1 solid $border-color;
    border-radius: $border-radius;

    overflow: hidden;

    display: flex;
    flex-wrap: wrap;

    label {
      display: inline-block;
      padding: $padding-8 $padding-16;
      border-bottom: $padding-1 transparent;
      cursor: pointer;
    }

    .book-tabs-content {
      order: 999; //Move content blocks to the end
      width: 100%;
      border-top: $padding-1 solid $gray-100;
      padding: $padding-16;
      display: none;
    }

    input[type="radio"]:checked + label {
      border-bottom: $padding-1 solid $blue;
    }
    input[type="radio"]:checked + label + .book-tabs-content {
      display: block;
    }
    input[type="radio"]:focus + label {
      @include outline
    }
  }

  // {{< columns >}}
  .book-columns {
    margin-left: -$padding-16;
    margin-right: -$padding-16;

    > div {
      margin: $padding-16 0;
      min-width: $body-min-width / 2;
      padding: 0 $padding-16;
    }
  }

  // {{< button >}}
  a.book-btn {
    display: inline-block;
    font-size: $font-size-14;
    color: $blue;
    line-height: $padding-16 * 2;
    padding: 0 $padding-16;
    border: $padding-1 solid $blue;
    border-radius: $border-radius;
    cursor: pointer;

    &:hover {
      text-decoration: none;
    }
  }

  // {{< hint >}}
  blockquote.book-hint {
    padding:1rem 1.5rem;
    margin:2rem 0;
    border-radius: $border-radius;
    @each $name, $color in $hint-colors {
      &.#{$name} {
        border-color: $color;
        background-color: rgba($color, 0.1);
      }
    }
  }
  a.book-page-ref{
    display:flex;
    color:$blue;
    border: 1px solid $border-color;
    margin: 2rem 0;
    padding: 0;
    position: relative;
    align-self: stretch;
    box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
    margin-top: 32px;
    transition: border 250ms ease;
    align-items: center;
    justify-self: stretch;
    border-radius: 3px;
    flex-direction: row;
    text-decoration: none;
    background-color: #FFFFFF;
    page-break-inside: avoid;
    cursor: pointer;
    &:visited{
      color:$black
    }
    &:hover{
      text-decoration: none;
      color:$blue;
      border-color:$blue;
      svg{
        color:$blue;
      }
    }
    .book-page-ref-icon{
      flex: 0 0 auto;
      color: $blue;
      margin: 0;
      display: block;
      padding: 1rem 0 1rem 1rem;
      font-size: 1.5rem;
      transition: color 250ms ease;
      -moz-transition: color 250ms ease;
      -webkit-transition: color 250ms ease;
      font-size: 1.5rem;
      line-height: 1;
      svg{
        width: 1.5rem;
        height: 1.5rem;
        vertical-align: middle;
      }
    }
    .book-page-ref-title{
      flex: 1;
      margin: 0;
      display: block;
      color: $blue;
      padding: 1rem;
    }
    .book-page-ref-url{
      flex: 0 0 auto;
      margin: 0;
      color: $gray;
      display: block;
      padding: 16px;
      max-width: 40%;
      font-size: 12px;
      font-family: Content-font, Roboto, sans-serif;
      font-weight: 400;
      line-height: 1.625;
      word-break: break-all;
    }
  }
}
